<html>
<head>
    <title>list</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <style type="text/css">

    </style>
</head>
<body>
    <div>
        <?php if (!empty($lists)){?>
        <?php foreach ($lists as $key => $value){ ?>
        <div>
            <a href="voteinfo.php?id=<?php echo $value['id'];?>"><?php echo $value['name'];?></a>
        </div>
        <?php }?>
        <?php }?>
    </div>
</body>
</html>